package com.cy.pj.sys.service;

import java.util.Map;

import com.cy.pj.common.bo.PageObject;
import com.cy.pj.common.bo.SysUserDept;
import com.cy.pj.sys.pojo.SysUser;

public interface SysUserService {
	
	PageObject<SysUserDept> findPageObject(String username,Integer pageCurrent);
	
	int validById(Integer id,Integer valid);
	
	int doSaveObject(SysUser sysUser, Integer... roleIds);
	
	Map<String,Object> doFindObjectById(Integer id);

	int doUpdateObject(SysUser sysUser, Integer[] roleIds);
	
	/**
	 * 修改登录密码
	 */
	int updatePaword(String sourcePassword,String newPassword,String cfgPasssword);
}
